# coding: utf-8
from flask_sqlalchemy import SQLAlchemy


db = SQLAlchemy()



class UpvoteInfo(db.Model):
    __tablename__ = 'upvote_info'

    AutoID = db.Column(db.BigInteger, primary_key=True)
    UUserID = db.Column(db.String(100), info='外键连接用户表')
    PassageID = db.Column(db.BigInteger, info='外键连接文章表')
    IsRead = db.Column(db.Integer, server_default=db.FetchedValue(), info='0-未读,1-已读')
    IsDelete = db.Column(db.Integer, server_default=db.FetchedValue(), info='状态0-正常，1-删除')
    CreateTime = db.Column(db.DateTime, server_default=db.FetchedValue())
